<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./js/vue.js"></script>
<body>
    <div class="box">
        <ul>
            <li v-for="(item,index) in list" :key="index">
                {{index}}---{{item.id}}--{{item.name}}
            </li>
        </ul>
    </div>
    <script>
        // v-for中的key  唯一的标识，不能重复，但是不建议使用下标
        let vm = new Vue({
            el:'.box',
            data:{
                list:[{id:'01',name:'丁俊豪'},{id:'02',name:'汤格格'},{id:'03',name:'郑安琪'},{id:'04',name:'刘佳宁'},{id:'05',name:'潘红瑶'}],
            }
        })
    </script>
</body>
</html>